<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\LinkPager;
?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>发起项目</title>
    <!--<meta name="description" content="这是主页">-->
    <meta name="keywords" content="form">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="stylesheet" href="css/chinaz.css">
    <link rel="stylesheet" href="css/amazeui.swiper.min.css">


    <link rel="stylesheet" href="css/index.css">
    <!--<link rel="stylesheet" href="css/amazeui.slick.min.css">
    -->
    <!--<link rel="icon" type="image/png" href="assets/i/favicon.png">
    -->
    <!--<link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    -->
    <!--<meta name="apple-mobile-web-app-title" content="Amaze UI" />
    -->
    <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="assets/css/layout.css"/>
    <script src="assets/js/jquery.min.js"></script>

    <!--<link rel="stylesheet" href="assets/css/admin.css">--></head>
<body>



            <div style="width: 100%;padding-left: 4%;padding-top: 4px;padding-right: 4%">

                <!--概括component-->
                <div style="width: 100%;height: 40px;background-color: #99d3ef;">
                    <div style="float: left;background-color: #55B6E4;width: 2%;height: 40px"></div>
                    <div style="float: left;padding-top: 4px;margin-left: 10px">
                        <span style="font-size: 20px">发起的项目</span>

                    </div>
                    <a href="<?=Url::toRoute('upload/show-project'); ?>"><button style="float: right;margin-right: 20px;background-color: #3A99DB;border: none;color:white;margin-top: 8px;border-radius: 4px;outline: none;padding:4px 10px 4px 10px">
                        发起项目
                    </button></a>
                </div>
                <!--over-->

                    <table style="width: 100%;border-collapse: collapse;" class="projectTable">
                        <tr style="background-color: rgb(235,240,244)">
                            <!-- <td style="width: 5%">序号</td> -->
                            <td style="width: 20%">项目名称</td>
                            <td style="width: 15%">区域</td>
                            <td style="width: 15%">行业</td>
                            <td style="width: 15%">状态</td>
                        </tr>
                        <tr style="background-color: white">
                        <?php foreach ($prLaunch2 as $launchone2): ?>

                            <!-- <td style="">1</td> -->
                            <td style=""><a href="http://localhost/chuangwu/web/index.php?r=project/show-detail&pr_id=<?= Html::encode($launchone2->pr_id)?>"><?= Html::encode($launchone2->title)?></a></td>
                            <td style=""><?= Html::encode($launchone2->area) ?></td>
                            <td style=""><?= Html::encode($launchone2->field) ?></td>
                            <td style="" class="blue"><?php if($launchone2->status==0){ echo "未开始"; ?>
                                <?php }else if($launchone2->status==1){ echo "正在招募"; ?>
                                <?php }else if($launchone2->status==-1){ echo "正在审核";?>
                                <?php }else { echo "已完成";}?>
                        </tr>
                        <?php endforeach; ?>
                    </table>



                <div style="width: 100%;height: 40px;background-color: #99d3ef;">
                    <div style="float: left;background-color: #55B6E4;width: 2%;height: 40px"></div>
                    <div style="float: left;padding-top: 4px;margin-left: 10px">
                        <span style="font-size: 20px">发起的聚募</span>

                    </div>
                    <a href="<?= Url::toRoute('upload/show-raised'); ?>"><button style="float: right;margin-right: 20px;background-color: #3A99DB;border: none;color:white;margin-top: 8px;border-radius: 4px;outline: none;padding:4px 10px 4px 10px">
                        发起聚募
                    </button></a>
                </div>

                <table style="width: 100%;border-collapse: collapse;" class="projectTable">
                    <tr style="background-color: rgb(235,240,244)">
                        <!-- <td style="width: 5%">序号</td> -->
                        <td style="width: 20%">项目名称</td>
                        <td style="width: 15%">区域</td>
                        <td style="width: 15%">行业</td>
                        <td style="width: 15%">筹资总额</td>
                        <td style="width: 15%">已筹金额</td>
                        <td style="width: 15%">审核批注</td>
                    </tr>
                    <?php foreach ($prLaunch as $launchone): ?>

                    <tr style="background-color: white">
                        <!-- <td style="">1</td> -->
                        <td style=""><a href="http://localhost/chuangwu/web/index.php?r=raised/show-detail&raised_id=<?= Html::encode($launchone->raised_id)?>"><?= Html::encode($launchone->title)?></a></td>
                        <td style=""><?= Html::encode($launchone->area) ?></td>
                        <td style=""><?= Html::encode($launchone->field) ?></td>
                        <td style=""><?= Html::encode($launchone->totalMoney) ?></td>
                        <td style=""><?= Html::encode($launchone->raisedMoney) ?></td>
                        <td style="" class="blue"><?php if($launchone->type==0){ echo "预热中"; ?>
                        <?php }else if($launchone->type==1){ echo "聚募中"; ?>
                    	<?php }else if($launchone->type==-1){ echo "正在审核中";?>
                    	<?php }else { echo "好多种状态";}?>
                        
                    </tr>
                    <?php endforeach; ?>
                </table>

            </div>

</body>
<style type="text/css">
    #lanuchPro {background-color: #5790AC}
</style>
<script>
    var like = document.getElementById("lanuchPro");
    like.innerHTML += "<img src='img/san.png' style='height: 40px;margin-top: -6px;float: right'> ";
</script>